a=[1,5,21,30,15,9,30,24]
num=0
for i in a:
    if i%5==0:
        num=num+i
    continue
print(num)